package com.lanqiao.attendance.service;

import com.lanqiao.attendance.vo.LoginParam2;
import com.lanqiao.attendance.vo.Result;
import com.lanqiao.attendance.vo.TeacherVo;

/**
 * * @Author Pu Yunsheng
 * * @Data 2022/7/9 下午 05:02
 * * @Version 1.0
 **/
public interface TeacherService {
    /**
     * 登录
     * @param login
     * @return
     */
    public Result login(LoginParam2 login);

    /**
     * 注册
     * @param teacherVo
     * @return
     */
    public Result register(TeacherVo teacherVo);

    /**
     * 添加教师
     * @param teacherVo
     * @return
     */
    public Result addTeacher(TeacherVo teacherVo);


    /**
     * 注销（删除账号）
     * @param account
     * @return
     */
    public Result deleteTeacher(String account);

    /**
     * 更新教师
     * @param teacherVo
     * @return
     */
    public Result updateTeacher(TeacherVo teacherVo);

    /**
     * 获取教师信息
     * @return
     */
    public Result getTeacherByNum(String account);

    /**
     * 获取全部教师信息
     * @return
     */
    public Result getAllTeacher();

    /**
     * 解析token
     */
    public boolean checkToken(String token);


    /**
     * 分页查询
     * @return
     */
    public Result pageQuery(Integer pageNumber,Integer pageSize);

    String queryNameByAccount(String account);
}
